package de.hhbk.feedbackmodul.entities;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;


/**
 * The persistent class for the frage database table.
 * 
 */
@Entity
@Table(name="tans")
public class Tan implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	@Column(unique=true, nullable=false)
	private int tan_nummer;

	@Column(nullable = false)
	private boolean active;

	@Column(nullable = false,length=20)
	private String tankey;

	//bi-directional many-to-one association to User
    @ManyToOne
	@JoinColumn(name="fk_umfrage",nullable=false)
	private Survey umfrage;


    public Tan() {
    }


	public int getTan_nummer() {
		return tan_nummer;
	}


	public void setTan_nummer(int tan_nummer) {
		this.tan_nummer = tan_nummer;
	}


	public boolean isActive() {
		return active;
	}


	public void setActive(boolean active) {
		this.active = active;
	}


	public String getTankey() {
		return tankey;
	}


	public void setTankey(String key) {
		this.tankey = key;
	}


	public Survey getUmfrage() {
		return umfrage;
	}


	public void setUmfrage(Survey umfrage) {
		this.umfrage = umfrage;
	}

	
}